package com.jeff.tianti.cms.dao;

import com.jeff.tianti.common.dao.CustomBaseSqlDaoImpl;
import com.jeff.tianti.common.entity.PageModel;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.jeff.tianti.cms.entity.GateUser;
import com.jeff.tianti.cms.dto.GateUserQueryDTO;
/**
 * @author xujianfang
 * @desc GateUserDaoImpl类 
 * @date 2019-07-26
 */

public class GateUserDaoImpl extends CustomBaseSqlDaoImpl implements GateUserDaoCustom  {

    public PageModel<GateUser> queryGateUserPage(GateUserQueryDTO gateUserQueryDTO){
         Map<String,Object> map = new HashMap<String,Object>();
         StringBuilder hql = new StringBuilder();
         hql.append("select t from GateUser t ");
         return this.queryForPageWithParams(hql.toString(),map,gateUserQueryDTO.getCurrentPage(),gateUserQueryDTO.getPageSize());
    }

    public List<GateUser> queryGateUserList(GateUserQueryDTO gateUserQueryDTO){
         Map<String,Object> map = new HashMap<String,Object>();
         StringBuilder hql = new StringBuilder();
         hql.append("select t from GateUser t ");
         return this.queryByMapParams(hql.toString(),map);
    }


}